<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ page import="net.lwf.handler.util.ImageHtml"%>
<html>
   <head>
	   <script>
		  function processURL() {
		    document.getElementById("introblock").innerHTML = '';
		    document.getElementById("answercheckblock").innerHTML = '';
			url = '/lwf/beginningendingletter.do?action=selectoperation';
		    retrieveURL(url, 'questionblock');
		  }
		  
		  function checkAnswer() {
		  	var userans = getCheckedRadio("choice");
		  	url = '/lwf/beginningendingletter.do?action=checkanswer&useranswer=' + userans;
		    retrieveURL(url, 'answercheckblock');
		  } 
	   </script>
   </head>
   

   <html:form action="/beginningendingletter" >
   <table border="0" align="center" width="100%" bordercolor="red"> 
       <tr>
           <td>
               <span id="introblock">
                   <%=ImageHtml.getStartButton("processURL()")%>
               </span>
           </td>
       </tr>         
       <tr>
           <td>
               <table border="0" width="100%">
                  <tr>
                      <td align="center">
                         <span id="answercheckblock"></span>
                      </td>
                  </tr>
                  <tr>
                      <td>
                         <span id="questionblock"></span>
                      </td>
                  </tr>                  
               </table>
           </td>
       </tr> 
   </table>  
</html:form>

</html>